class Foo:
    pass

obj = Foo()
print(obj.__module__)
print(obj.__class__)